package org.cangkuguanli.boot.controller;

import org.cangkuguanli.boot.util.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/first") // 网址路径
public class FirstController {
    // /first/a
    @RequestMapping("/a")
    public String a(){
        return "This is FirstController`a method!";
    }

    public JsonResult b(){
        return new JsonResult<>(true,200,"This is FirstController`a method!","");
    }
}
